import { IFeidaoAiBrowserComponent } from '@feidao/web/interfaces';

export default async function a013(fd: IFeidaoAiBrowserComponent, ...args: any[]) {
	// 选择列表复选框
	const all_boxs = fd.data.node.querySelectorAll('[data-feidao-name="certifi"]');
	const c_boxs = fd.data.node.querySelectorAll('[data-feidao-name="certifi"]:checked');
	const n = fd.data.node.querySelector<HTMLInputElement>('[data-feidao-id="checkall"]');
	if (all_boxs.length === c_boxs.length) {
		n.checked = true;
	} else {
		n.checked = false;
	}
}
